home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / mxlibs / dwstk102 / dwt.h < prev    next >
C/C++ Source or Header  |  1995-04-12  |  2KB  |  81 lines

  1. /******************************************************************************
  2. File:          dwt.h
  3. Version:     1.02
  4. Tab stops: every 2 columns
  5. Project:     The Sound ToolKit
  6. Copyright: 1994-1995 DiamondWare, Ltd.    All rights reserved.
  7. Written:     Keith Weiner
  8. Purpose:     Contains declarations for the DW Timer module
  9. History:     KW 08/24/94 Started
  10.                      EL 02/17/95 Finalized for v1.00
  11.                      EL 04/12/95 Finalized for v1.02
  12.  
  13. NB: This code is not compatible with source profilers
  14. ******************************************************************************/
  15.  
  16.  
  17.  
  18. #ifndef dwt_INCLUDE
  19.  
  20.     #define dwt_INCLUDE
  21.  
  22.  
  23.  
  24.     /*
  25.      . Below are the timer rates supported by DWT.    Anything in between
  26.      . the listed values will cause the DOS/BIOS clock to tick erratically
  27.      . and is thus not allowed.  Any value higher than 145.6 Hz means
  28.      . you have some very special circumstances; DWT won't fit your needs
  29.      . anyway.
  30.     */
  31.     #define dwt_18_2HZ         0                        /* 18.2 Hz */
  32.     #define dwt_36_4HZ         1                        /* 36.4 Hz */
  33.     #define dwt_72_8HZ         2                        /* 72.8 Hz */
  34.     #define dwt_145_6HZ      3                        /* 145.6 Hz */
  35.  
  36.  
  37.  
  38.     #ifdef __cplusplus
  39.         extern "C" {
  40.     #endif
  41.  
  42.  
  43.     /*
  44.      . See #defines, above
  45.     */
  46.     void _far _pascal dwt_Init(word rate);
  47.  
  48.  
  49.     /*
  50.      . If the program has called dwt_Init, it _MUST_ call dwt_Kill before it
  51.      . terminates.
  52.      .
  53.      . NB: Trap critical errors.    Don't let DOS put up the
  54.      .         "Abort, Retry, Fail?" text.    ('sides, it'll destroy your pretty gfx)
  55.     */
  56.     void _far _pascal dwt_Kill(void);
  57.  
  58.  
  59.     /*
  60.      . The following 2 functions affect the timer, but not the music
  61.     */
  62.     void _far _pascal dwt_Pause(void);
  63.  
  64.     void _far _pascal dwt_UnPause(void);
  65.  
  66.  
  67.     /*
  68.      . Number of ticks since Beginning of World
  69.     */
  70.     dword _far _pascal dwt_MasterTick(void);
  71.  
  72.  
  73.  
  74.     #ifdef __cplusplus
  75.         }
  76.     #endif
  77.  
  78.  
  79.  
  80. #endif
  81.